﻿using System;
using System.Collections.Generic;
using System.Text;

namespace iFinity.DNN.Modules.CacheMaster.Entities
{
    public class CacheItemInfo
    {
        private string _cacheKey;
        private string _cacheObjectType;
        private DateTime _utcExpiryDate;
        private DateTime _utcCreatedDate;
        private DateTime _utcLastUpdateDate;
        private TimeSpan _slidingExpiration;
        private int _count;
        private string _xmlSerializedData;
        private string _message;
        public string CacheKey
        {
            get { return _cacheKey; }
            set { _cacheKey = value; }
        }
        public string CacheObjectType
        {
            get { return _cacheObjectType; }
            set { _cacheObjectType = value; }
        }
        public DateTime UtcExpiryDate
        {
            get
            {
                return _utcExpiryDate;
            }
            set
            {
                _utcExpiryDate = value;
            }
        }
        public DateTime UtcCreatedDate
        {
            get
            {
                return _utcCreatedDate;
            }
            set
            {
                _utcCreatedDate = value;
            }
        }
        public DateTime UtcLastUpdateDate
        {
            get
            {
                return _utcLastUpdateDate;
            }
            set
            {
                _utcLastUpdateDate = value;
            }
        }
        public int Count
        {
            get
            {
                return _count;
            }
            set
            {
                _count = value;
            }
        }
        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }
        public TimeSpan SlidingExpiration
        {
            get { return _slidingExpiration; }
            set { _slidingExpiration = value; }
        }
        public string XmlSerializedData
        {
            get { return _xmlSerializedData; }
            set { _xmlSerializedData = value; }
        }
        public string BInarySerializedData { get; set; }

        public bool BinarySerializable { get; set; }
        public bool BinaryDeSerializable { get; set; }
    }
}
